﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Travel.Web.wb_advertisement
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string id= strid;
					ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(string id)
	{
		Travel.BLL.wb_advertisement bll=new Travel.BLL.wb_advertisement();
		Travel.Model.wb_advertisement model=bll.GetModel(id);
		this.lblid.Text=model.id;
		this.lbltitle.Text=model.title;
		this.lbladnum.Text=model.adnum;
		this.lblpicpath.Text=model.picpath;
		this.lblweburl.Text=model.weburl;
		this.lblcost.Text=model.cost;
		this.lblheight.Text=model.height.ToString();
		this.lblwidth.Text=model.width.ToString();
		this.lblstarttime.Text=model.starttime.ToString();
		this.lblendTime.Text=model.endTime.ToString();
		this.lbltype.Text=model.type.ToString();
		this.lblisuse.Text=model.isuse.ToString();
		this.lblcomment.Text=model.comment;
		this.lbljs.Text=model.js;
		this.lblcreated_on.Text=model.created_on.ToString();
		this.lblcreated_by.Text=model.created_by;
		this.lblchanged_on.Text=model.changed_on.ToString();
		this.lblchanged_by.Text=model.changed_by;

	}


    }
}
